<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./javascripts/jquery.js"></script>
</head>
<body>
    <input type="text" name="pid" id="pid">
    <button id="btn">提交</button>
</body>
<script>
    $('#btn').click(function(){
        $.ajax({
            url:'http://localhost:3000/product',
            method: 'POST',
            data: {id: $('#pid').val()}
        }).then((res)=>{
            console.log(res);
        });
    });
</script>
</html>